package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_AmazonShopExchangeRate", catalog="Id")
public class TpAmazonShopExchangeRate extends BaseEntity<TpAmazonShopExchangeRate> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Symbol", nameJava="symbol", typeDataBase="varchar")
	private String symbol;
	@YsField(nameDataBase="ExchangeRate1", nameJava="exchangeRate1", typeDataBase="decimal")
	private BigDecimal exchangeRate1;
	@YsField(nameDataBase="ExchangeRate2", nameJava="exchangeRate2", typeDataBase="decimal")
	private BigDecimal exchangeRate2;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAmazonShopExchangeRate setId(Long id) {
		this.id = id;
		return this;
	}
	public String getName() {
		return name;
	}
	public TpAmazonShopExchangeRate setName(String name) {
		this.name = name;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TpAmazonShopExchangeRate setCode(String code) {
		this.code = code;
		return this;
	}
	public String getSymbol() {
		return symbol;
	}
	public TpAmazonShopExchangeRate setSymbol(String symbol) {
		this.symbol = symbol;
		return this;
	}
	public BigDecimal getExchangeRate1() {
		return exchangeRate1;
	}
	public TpAmazonShopExchangeRate setExchangeRate1(BigDecimal exchangeRate1) {
		this.exchangeRate1 = exchangeRate1;
		return this;
	}
	public BigDecimal getExchangeRate2() {
		return exchangeRate2;
	}
	public TpAmazonShopExchangeRate setExchangeRate2(BigDecimal exchangeRate2) {
		this.exchangeRate2 = exchangeRate2;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAmazonShopExchangeRate setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAmazonShopExchangeRate setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAmazonShopExchangeRate setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAmazonShopExchangeRate tpAmazonShopExchangeRate(
		String name,
		String code,
		String symbol,
		BigDecimal exchangeRate1,
		BigDecimal exchangeRate2,
		Integer status
			) {
		TpAmazonShopExchangeRate entity = new TpAmazonShopExchangeRate();
		entity.setName(name);
		entity.setCode(code);
		entity.setSymbol(symbol);
		entity.setExchangeRate1(exchangeRate1);
		entity.setExchangeRate2(exchangeRate2);
		entity.setStatus(status);
		return entity;
	}
}